<template>
    <div class="content-container">
        <Title :icon="'bar-chart-box-ai-fill'" :title="'关键词排名'">
            <template #time>
                <svg-icon size="14px" icon-class="refresh-line" class="mr-5px"></svg-icon>更新于今天
            </template>
        </Title>
        <div class="h-400px overflow-hidden ml-16px mr-16px keyword-list">
            <el-scrollbar>
                <div class="flex items-center keyword-list__title">
                    <div class="flex-1 text-left pl-16px">关键词</div>
                    <div class="w-80px">排名</div>
                    <div class="w-100px">日期</div>
                    <div class="w-100px"></div>
                </div>
                <ul>
                    <li class="flex items-center">
                        <div class="flex-1 text-left text-#333 pl-16px">高低温试验设备箱</div>
                        <div class="w-80px">第<b>1</b>位</div>
                        <div class="w-100px">2025-5-15</div>
                        <div class="flex w-100px justify-center"><el-button type="primary" size="small">查看排名</el-button></div>
                    </li>

                </ul>
            </el-scrollbar>
        </div>
    </div>
</template>

<script setup lang="ts">
import Title from './Title.vue'
</script>

<style lang="scss" scoped>
.keyword-list{
    &__title{
        height:38px;
        border-radius: 4px;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
        background-color: var(--mainBg);
    }
    ul{
        li{
            padding: 12px 0;
            font-size: 12px;
            line-height: 1.2;
            text-align: center;
            color: #999;
            border-bottom:1px solid #edeff5;
            b{
                color: var(--mainColor);
                margin: 0 3px;
            }
        }
    }
}
</style>